<include file="public@header" />
</head>
<body>
    <div class="layui-fluid js-check-wrap">
        <form class="layui-form js-ajax-form margin-top-20" action="{:url('rbac/roleAddPost')}" method="post">
            <div class="layui-card">
                <div class="layui-card-header">{:lang('ADMIN_RBAC_ROLEADD')}</div>
                <div class="layui-card-body">
                   <div class="layui-form-item">
                       <label class="layui-form-label"><span class="form-required">*</span>{:lang('ROLE_NAME')}</label>
                       <div class="layui-input-block">
                           <input type="text" class="layui-input" id="input-name" name="name">
                       </div>
                   </div>
                   <div class="layui-form-item">
                       <label class="layui-form-label">{:lang('ROLE_DESCRIPTION')}</label>
                       <div class="layui-input-block">
                           <textarea type="text" class="layui-textarea" id="input-remark" name="remark"></textarea>
                       </div>
                   </div>
                   <div class="layui-form-item">
                       <label class="layui-form-label">{:lang('STATUS')}</label>
                       <div class="layui-input-block">
                            <input type="radio" name="status" value="1" title="{:lang('ENABLED')}" checked>
                            <input type="radio" name="status" value="0" title="{:lang('DISABLED')}">
                       </div>
                   </div>
                   
                   <div class="layui-form-item">
                       <div class="layui-input-block">
                           <if condition="cmf_auth_check(cmf_get_current_admin_id(), 'admin/Rbac/roleAddPost')">
                               <button type="submit" class="layui-btn layui-btn-normal js-ajax-submit">{:lang('ADD')}</button>
                           </if>
                           <a class="layui-btn layui-btn-primary" href="javascript:history.back(-1);">{:lang('BACK')}</a>
                       </div>
                   </div>
                </div>
            </div>
        </form>
    </div>
<include file="public@footer" />
